
import http from '@/utils/http'
import type { TableData } from '@arco-design/web-vue/es/table/interface';
import type {LogResp} from "@/api/system/types/log";

/**
 * 查询请求体
 */
export interface QueryRequest {
    username?: string;
    ip?:string,
    time?:any
}
/**
 * 分页请求体
 */
export interface PageQueryRequest extends QueryRequest, PageQuery {}
/**
 * 查询响应
 */
export interface QueryResponse extends LogResp {}


/**
 * 查询列表(分页)
 */
export function getLoginList(params: QueryRequest)  {
    return http.get<PageRes<QueryResponse[]>>('/admin/log/loginLog', params)
}
/**
 * 查询列表(分页)
 */
export function getOperationList(params: QueryRequest)  {
    return http.get<PageRes<QueryResponse[]>>('/admin/log/actionLog', params)
}